﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EjercicioI
{
    public abstract class Vehiculo
    {
        protected string Matricula { get; set; }
        protected bool Alquilado { get; set; }

        public abstract bool estaAlquilado(); 
        public abstract void alquilar(int alquiler);
        public abstract void devolver(int devolver);
        public abstract void showinfo();

        public Vehiculo(string matric, bool alquil)
        {
            Matricula = matric;
            Alquilado = alquil;

        }
    }
}
